﻿@model SubmitReturnRequestModel

@using Nop.Core.Domain.Orders;
@using Nop.Web.Models.Order;
@using Nop.Web.Models.Checkout;
@using Nop.Web.Models.Common;
<div class="return-request-confirm">
    <h3>Are you sure you want to return the following items?</h3>
    <table>
        <thead><tr><th>Product</th><th>Quantity</th></tr></thead>
        <tbody>
        @foreach (var item in Model.Items.Where(i => i.ReturnQuantity > 0))
        {
            <tr><td>@item.ProductName</td><td>@item.ReturnQuantity</td></tr>
        }
        </tbody>
    </table>
    <h4>@Html.LabelFor(model => model.ShipmentMethods)</h4>
    <div>@Model.ShipmentMethods.SingleOrDefault(sm => sm.Value == Model.ShipmentMethodId.ToString()).Text</div>
    <h4>@Html.LabelFor(model => model.ReturnAction)</h4>
    <div>@Html.DisplayFor(model => model.ReturnAction)</div>
    <h4>@Html.LabelFor(model => model.ReturnReason)</h4>
    <div>@Html.DisplayFor(model => model.ReturnReason)</div>
    <h4>@Html.LabelFor(model => model.Comments)</h4>
    <div>@if (String.IsNullOrEmpty(Model.Comments)){<span>None.</span>} else {@Html.DisplayFor(model => model.Comments)}</div>
    <div class="return-request-notices">
        <h4>Notice</h4>
        <ul>
            <li>SpotsHUB retains the right to decline any request.</li>
            <li>If you are using SpotsHUB Express, we will be picking up the item(s) at the order delivery location.</li>
            <li> The $10 shipping cost plus the fuel surchage and GST will be deducted from the final refund amount if the return reason does not qualify for the free return shipping</li>
        </ul>
    </div>
    @using (Html.BeginForm("AjaxReturnRequestConfirm", "ReturnRequest"))
    { 
        @Html.HiddenFor(model => model.OrderId)
    }
</div>